package NWish.properties.materials.MaterialMethod
{
	import NWish.json.OrderDict;
	
	import away3d.materials.methods.CelDiffuseMethod;

	public class CelDiffuseMethodProperties
	{
		public function CelDiffuseMethodProperties()
		{
		}
		
		public function toString()
		{
			return 'CelDiffuseMethod';
		}
		
		public function get type()
		{
			return CelDiffuseMethod;
		}
		
		public function propertiesToDict(method:CelDiffuseMethod,dict:OrderDict,read_only,saving)
		{
			if(read_only == false)
			{
				//dict.push('renderType',toString());
				dict.push('levels',method.levels);
				dict.push('smoothness',method.smoothness);
			}
			else
			{
				
			}
		}
		
		public function dictToProperties(dict,method:CelDiffuseMethod,scene,isloading)
		{
			if(dict['levels'])
				method.levels = dict['levels'];
			
			if(dict['smoothness'])
				method.smoothness = dict['smoothness'];
		}
	}
}